﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using PicturePortfolio.Domain;

namespace PicturePortfolio.ServiceContracts
{
    [ServiceContract(Name="IPhotoService")]
    public interface IPhotoServiceAsync
    {
        [OperationContract(AsyncPattern = true)]
        IAsyncResult BeginGetAllPhotos(AsyncCallback callback, object state);
        List<Photo> EndGetAllPhotos(IAsyncResult result);

        [OperationContract(AsyncPattern = true)]
        IAsyncResult BeginSavePhoto(Photo photo, AsyncCallback callback, object state);
        void EndSavePhoto(IAsyncResult result);
    }
}
